package base;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/12/25.
 */
public abstract class BaseEntity implements IBaseEntity {

    public static List<String> getIdList(List<? extends  IBaseEntity > list) {
        List<String> idList = new ArrayList<String>();
        if (list != null) {
            for (IBaseEntity baseEntity : list) {
                idList.add(baseEntity.getId());
            }
        }
        return idList;
    }

}
